#include "messageboxdialog.h"
#include "ui_messageboxdialog.h"

MessageBoxDialog::MessageBoxDialog(QWidget *parent, const QString &message) :
    QDialog(parent),
    IDialog(),
    ui(new Ui::MessageBoxDialog)
{
    ui->setupUi(this);
    this->setWindowFlags(Qt::FramelessWindowHint);
    ui->label_tipinfo->setText(message);
}

MessageBoxDialog::~MessageBoxDialog()
{
    delete ui;
}

void MessageBoxDialog::setMessage(const QString &message){
    ui->label_tipinfo->setText(message);
}

void MessageBoxDialog::on_Btn_OK_clicked()
{
    this->accept();
}

void MessageBoxDialog::on_Btn_Cancel_clicked()
{
    this->reject();
}
